<template>
  <a-config-provider :locale="locale" :autoInsertSpaceInButton="false">
    <router-view />
  </a-config-provider>
</template>

<script>
import zhCN from 'ant-design-vue/es/locale/zh_CN';
export default {
  name: 'App',
  data() {
    return {
      locale: zhCN
    };
  }
};
</script>

<style lang="less">
@import './assets/css/text.css';
@import './assets/css/flex.css';
@import './assets/css/global.css';
@import './assets/css/animation.css';
// @import '~ant-design-vue/dist/antd.less';
@import '~ant-design-vue/dist/antd.dark.less'; // 引入官方提供的暗色 less 样式入口文件
@import './assets/styles/antd-theme.less'; // 用于覆盖上面定义的变量
@import './assets/styles/theme.less';
@import './lib/g3x/g3v/widgets/cesium-navigation-es6/styles/cesium-navigation.less';

@import '~@cesium/Build/Cesium/Widgets/widgets.css';

#app {
  font-family: Microsoft YaHei, Microsoft YaHei-Bold;
  /* font-family: Avenir, Helvetica, Arial, sans-serif; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.ant-dropdown-menu {
  background-color: rgba(0, 0, 0, 0.5);

  .ant-dropdown-menu-item {
    &:hover {
      background-color: rgba(0, 0, 0, 0.25);
    }
  }
}

// cesium-viewer
.cesium-draw,
.cesium-viewer-wapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: white;
  font-size: 14px;

  #cesium-drawer,
  #cesium-viewer{
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .mouse-postion {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 14px;
    padding: 8px 12px;
    line-height: 16px;
    color: white;
    z-index: 9999;
    background-color: rgba(40, 48, 60, 1);
    border-radius: 3px;
    opacity: 0.8;
  }
}

// tool-box
.tool-box-left-bottom,
.tool-box-top-left,
.tool-box-left-top {
  position: absolute;
  top: 85px;
  left: 3px;
  z-index: 9;

  .slider-box-wrapper {
    display: flex;
    width: 18em;
    padding: 0 10px;
    background-color: rgba(0, 0, 0, 0.75);
    margin-bottom: 10px;
  }

  .select-box-wrapper {
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.75);
    margin-bottom: 10px;
    width: auto;
  }
}

.tool-box-left-bottom {
  top: unset;
  bottom: 70px;
  left: 10px;
  width: 18em;
}

</style>
